// import { register } from "@aotoo/react-cell";
import { register } from "./cell";

function CustomSpans(props) {  // xxx
  const val = props.value
  if (props.spantype === 'item') {
    return <UI_item id={props.id} {...val} />
  }
  else if (props.spantype === 'list') {
    return <UI_list id={props.id} {...val} />
  }
  else {
    return <val.UI id={props.id}/>
  }
}

register( "CustomSpan", [ 'span' ], CustomSpans );